package org.xdoclet.plugin.hibernate;

import java.io.File;

public class U {
	public static void deleteFile(File file) {
		if(!file.exists()) return ;
		if (file.isFile()) {
			file.delete();
		} else {
			File[] files = file.listFiles();
			for (File itemFile : files) {
				deleteFile(itemFile);
			}
			file.delete();
		}
	}
}
